const getRuntime = () => {
  if (typeof uni !== 'undefined') return uni
  if (typeof wx !== 'undefined') return wx
  throw new Error('Unsupported runtime')
}
// 判断使用 uni 还是 wx
const platformApi = getRuntime()

export default platformApi
